package com.fudan.backend.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Activity {
    private String activityId;
    private String activityName;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;
    private List<String> categoryIdList;
    private Double fund;
    private Double reach;
    private Double reduce;
    private Double balance;
    private Double registeredCapital;
    private Integer monthlySalesVolume;
    private Double monthlySalesValue;
    private Integer status;

    public Activity(String activityId) {
        this.activityId = activityId;
    }
}
